package com.scrcu.core.batch.service;

import com.scrcu.core.batch.entity.BatchInst;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description:
 * @Author: 刘超
 * @Date: 2023-05-24 11:26
 */
@Service("monitorBroadcast")
public class MonitorBroadcastService implements BatchInstService{
    @Override
    public Object start(BatchInst batchInst) {
        Map map  = new HashMap<String,Object>();
        map.put("start1","result1");
        return map;
    }

    @Override
    public Object stop(BatchInst batchInst) {
        return null;
    }

    @Override
    public Object stopAll() {
        Map map  = new HashMap<String,Object>();
        map.put("stopAll1","result1");
        map.put("stopAll2","result2");
        map.put("stopAll3","result3");
        return map;
    }
}
